#ifndef COMPONENTS_AI_H
#define COMPONENTS_AI_H

#include "Common/Common.h"
#include <ECS/ECS.h>
#include <lodestar/steering.h>
#include <vector>
#include "lodestar/aastar.h"


class AI : public ECS::Component
{
	mtMETA_DEC;
public:
    AI();

    void onStart();
    
    void onUpdate(float dt);

    void setSteering(ISteering* steering);

    void setPathTo(int x, int y);
protected:
    IVehicle* mVehicle;
    ISteering* mSteering;
    std::vector<MapTile> _path;
};

#endif